<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<jsp:include page="../header.jsp" />

<table>
	<form:form id="form1" commandName="registeringPerson">
		
			<tr>
				<td>Imię:</td>
				<td><form:input path="name" /></td>
				<td><form:errors path="name" cssStyle="color:red" /></td>
			</tr>
			<tr>
				<td>Nazwisko:</td>
				<td><form:input path="surname" /></td>
				<td><form:errors path="surname" cssStyle="color:red" /></td>
			</tr>
			<tr>
				<td>Email:</td>
				<td><form:input path="email" /></td>
				<td><form:errors path="email" cssStyle="color:red" /></td>
			</tr>
			<tr>
				<td>Hasło:</td>
				<td><form:password path="password" /></td>
				<td><form:errors path="password" cssStyle="color:red" /></td>
			</tr>
			<tr>
				<td>Data urodzenia:</td>
				<!-- zmienic na kalendarz! -->
				<td><form:input path="birthdate" id="datepicker"/></td>
				<td><form:errors path="birthdate" cssStyle="color:red" /></td>
			</tr>
			<tr>
				<td>Płeć:</td>
				<td><form:radiobutton path="sex" value="Mężczyzna"/>Mężczyzna 
					<form:radiobutton path="sex" value="Kobieta"/>Kobieta</td>
				<td><form:errors path="sex" cssStyle="color:red"/></td>
			</tr>
			<tr>
				<td></td>
				<td align="right"><input type="submit" value="Wyślij" /></td>
				<td></td>
			</tr>
		
	</form:form>
</table>
<jsp:include page="../footer.jsp" />